package com.tacc.tyun.common.quartz;

import com.tacc.tyun.util.DateUtil;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * @author taocongcong
 * @create 2017-07-14 15:03
 */
public class ScheduledJob2 implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println("YUNYUN: The time is now " + DateUtil.DateToStr(new Date(),DateUtil.DATE_TIME_PATTERN));
    }
}
